package com.example.training.model.errorcode;

public enum BaseErrorCode implements IErrorCode {

    CLIENT_ERROR("ERR000001", "用户端错误"),
    PARAM_ERROR("ERR000002", "请求参数非法"),
    PARAMUNOTREAD_ERROR("ERR000003", "请求体非法");
    private final String code;

    private final String message;

    BaseErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
